package chapter11;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2018-04-16 下午1:05
 */
public class DefaultInterceptor implements Interceptor {
    private static final Logger LOGGER = LoggerFactory.getLogger(DefaultInterceptor.class);

    @Override
    public void before(Object object) {
        LOGGER.info("execute method-before");
    }

    @Override
    public void after(Object object) {
        LOGGER.info("execute method-after");
    }

    @Override
    public void afterReturning(Object object) {
        LOGGER.info("execute afterReturning");
    }

    @Override
    public void afterThrowing(Object object) {
        LOGGER.info("execute afterThrowing");
    }
}
